package com.wpf.test01;

public class demo_niming {
    public static void main(String[] args) {

        go(new Swimming(){
            @Override
            public void swim(){
                System.out.println("小土狗游泳啦");
            }
        });
    }

    public static void go(Swimming s1){
        System.out.println("开始。。。。。。。。。。。");
        s1.swim();
    }
}



interface Swimming{
    public abstract void swim();
}
